#include "othernextpagemenu.h"
#include "ui_othernextpagemenu.h"

OtherNextPageMenu::OtherNextPageMenu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::OtherNextPageMenu)
{
    ui->setupUi(this);
}

OtherNextPageMenu::~OtherNextPageMenu()
{
    delete ui;
}

void OtherNextPageMenu::changeLanguage()
{
    ui->retranslateUi(this);
}

void OtherNextPageMenu::on_forwardPage_Btn_clicked()
{
    this->close();
    emit otherForwardPage_signal();
}

//void OtherNextPageMenu::on_nextPage_Btn_clicked()
//{
//    this->close();
//    emit otherForwardPage_signal();
//    //this->close();
//    //emit otherNextPage_signal();
//}

void OtherNextPageMenu::on_LoadMap_Btn_clicked()
{
    emit addLoadMapInstruction_signal();
}

void OtherNextPageMenu::on_checkBattery_Btn_clicked()
{
    emit addCheckBatteryInstruction_signal();
}

void OtherNextPageMenu::on_waitCommand_Btn_clicked()
{
    emit addWaitCommandInstruction_signal();
}

void OtherNextPageMenu::on_RobotMove_Btn_clicked()
{
    emit addRobotMoveInstruction_Signal();
}

void OtherNextPageMenu::on_Roller_Btn_clicked()
{
    emit addRollerInstruction_Signal();
}


